export const useUpdateKey = (key: Ref) => {
  key.value = key.value + 1
}

export const useUpdateKeyByTarget = (target: any, key: Ref) => {
  watch(
    () => target,
    () => useUpdateKey(key),
    { immediate: true }
  )
}
